package com.aliang.shopping.model.vo.goods;

import com.aliang.shopping.model.vo.UpdateTimeVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "商品Sku信息展示对象")
public class GoodsSkuVO extends UpdateTimeVO {

    /**
     * 数据Id
     */
    @ApiModelProperty("数据Id")
    private Long id;

    /**
     * 商品规格集合
     */
    @ApiModelProperty("商品规格集合")
    private List<Long> specList;

    /**
     * 商品图片
     */
    @ApiModelProperty("商品图片")
    private String image;

    /**
     * 商品价格
     */
    @ApiModelProperty("商品价格")
    private BigDecimal price;

    /**
     * 商品折扣
     */
    @ApiModelProperty("商品折扣")
    private BigDecimal scope;

    /**
     * 库存
     */
    @ApiModelProperty("库存")
    private Integer store;

    /**
     * 售卖状态
     */
    @ApiModelProperty("售卖状态")
    private Integer isSell;

    /**
     * 预存库存
     */
    @ApiModelProperty("预存库存")
    private Integer reservedStore;

    /**
     * 商品Id
     */
    @ApiModelProperty("goods_id")
    private Long goodsId;
}
